#ifndef STLMODELATTRIBUTESCALCULATOR_H
#define STLMODELATTRIBUTESCALCULATOR_H

#include <QVector3D>
#include <QVector>
#include <QMatrix4x4>
#include <cmath>

#include "ModelFormation.h"

class STLModelAttributesCalculator
{
public:
    ///
    /// \brief calModelCentroid
    /// 计算三角面片加权质心代替整体模型的质心
    /// \return 整体模型的质心坐标
    ///
    QVector3D calModelCentroid(const QVector<Mesh>& stl_model_meshes);
    ///
    /// \brief calModelInitPhaseNorm
    /// 使用PCA，获取模型朝向面向量
    /// \return 模型朝向向量
    ///
    QVector3D calModelInitPhaseNorm(const QVector<Mesh>& stl_model_meshes);
};

#endif
